﻿using System;
using LightWork;
using Common.Logging;

namespace LightServer
{
	public class Program
	{
		private static readonly ILog _log = LogManager.GetLogger<Program>();
		[STAThread]
		private static void Main(string[] args)
		{
			try
			{
				Bootstrap.RunWindowHost();
			}
			catch (Exception ex)
			{
				_log.Error(ex.Message);
				while (ex.InnerException != null)
				{
					ex = ex.InnerException;
					_log.Error(ex.Message);
				}
				
			}
		}
	}
}
